<!Doctype html>
<html>
<head>
<title>Family</title>
<meta charset="utf-8" />
<link href="../css/basic.css" type="text/css" rel="stylesheet"/>
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<style>
#wrap{
  background:#efefef;
  padding:20px 0 30px;
}
#wrap_inner{
  width:978px;
  margin:0 auto;
  background:#fff;
  border-radius:4px;
  -moz-border-radius:4px;
  -webkit-border-radius:4px;
}
.fz14{
  font-size:1.4em;
}
.family{
  font-size:1.2em;
}
.color{
  color:#fff;
  padding:10px 8px;
}
.color span{
  width:60px;
  height:30px;
  line-height:30px;
  text-align:center;
  display:block;
  float:left;
}
.facebook{
  background:#3B5998;
}
.twitter{
  background:#222;
}
.xiami{
  background:#F60;
}
.LOFTER{
  background:#1A1A1A;
}
.google{
  background:#2D2D2D;
}
.c_373737{
  background:#373737;
}
.a{font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;}
.text {
font-family: 'Hiragino Sans GB','Microsoft YaHei',sans-serif!important;
}
.fNax{
	font-family: naxienian,Microsoft Yahei,SimHei,SimSun;
}
.btn1{
background-image: linear-gradient(top, rgb(133,5,5) 100%, rgb(255,102,0) 50%, rgb(133,5,5) 0%);
background-image: -o-linear-gradient(top, rgb(133,5,5) 100%, rgb(255,102,0) 50%, rgb(133,5,5) 0%);
background-image: -moz-linear-gradient(top, rgb(133,5,5) 100%, rgb(255,102,0) 50%, rgb(133,5,5) 0%);
background-image: -webkit-linear-gradient(top, rgb(133,5,5) 100%, rgb(255,102,0) 50%, rgb(133,5,5) 0%);
background-image: -ms-linear-gradient(top, rgb(133,5,5) 100%, rgb(255,102,0) 50%, rgb(133,5,5) 0%);

background-image: -webkit-gradient(
	linear,
	left top,
	left bottom,
	color-stop(1, rgb(133,5,5)),
	color-stop(0.5, rgb(255,102,0)),
	color-stop(0, rgb(133,5,5))
);

}
</style>
</head>
<body>
<div id="wrap">
<h1>family and color</h1>
<div id="wrap_inner">
  <div class="family">Minify is a PHP5 app that helps you follow several of Yahoo!'s Rules for High Performance Web Sites.
    <div class="a">font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;</div>
  </div>
  <div class="color clearfix">
    <span class="facebook">facebook</span><span class="twitter">twitter</span><span class="xiami">xiami</span><span class="LOFTER">LOFTER</span>
    <span class="google">Google</span><span class="c_373737">#373737</span><span style="background:#E0ECFF;"></span>
    <span style="background:#88AACC;"></span>
    <span style="background:#EBEFF9;"></span>
    <span style="background:#DCE2E7;">YAHOO</span>
    <span style="background:#224F6D;">DianDian</span>
    <span style="background:#060;">DOUBAN</span>
    <span style="background:#394344;">DOUBAN</span>
    <span style="background:#E96E73;">DOUBAN</span>
    <span style="background:#DCC645;">DOUBAN</span>
    <span style="background:#4B7790;">DOUBAN</span>
    <span style="background:#242424;">DOUBAN</span>
    <span style="background:#DD4B39;">DOUBAN</span>
  </div>
</div>
</div>
<s class="arrow"></s>
<script>/*
var time = new Date();
var y = time.getFullYear();
var m = time.getMonth();
var d = time.getDate();
var p = y+m+d;
//alert(p);

function b(){
  a = "wangxiang";
}
b();
console.log(a);
sessionStorage.setItem("w", "123");
//sessionStorage.clear();
var g = sessionStorage.getItem("w");
//alert(g);
var app = require('express').createServer(), 
	io = require('socket.io').listen(app);
app.listen(80);
app.get('/', function (req, res) {
	res.sendfile(__dirname + '/index.html');
});
io.sockets.on('connection', function (socket) {
	//发送消息给客户端
	socket.emit('news', { hello: 'world' });
	socket.on('my other event', function (data) {
		console.log(data);
	});
	//广播信息给除当前用户之外的用户
	socket.broadcast.emit('user connected');
	//广播给全体客户端
	io.sockets.emit('all users');
});
function iem(){

}
*/
(function(){
	function wallFall(e,d){
		this.init(e, d);
	}
	wallFall.prototype = {
		init: function(){
			var j = 0;
			for (i=0; i<5; i++ )
			{
				j += i;
			}
			console.log(j);
		},
		loadPage: function(c){
			console.log(c);
		},
		requestPage: function(){
			
		}
	}
	var wallfall = new wallFall();
	wallfall.loadPage.apply(wallfall.init, [2]);//apply以数组的形式传入
	wallfall.loadPage.call(wallfall.init, 2);//call方法以参数的形式传入
})()
function add(a,b){
    alert(a+b);
}
function sub(a,b){
   // alert(a-b);
}
//add.call(sub,3,1); 
</script>
</body>
</html>
















